<?php
/**
 * @Desc 首页
 * @Auth Menory
 * @Date 2016年3月7日 13:59:20
 */
namespace Act\Menus;
use Act\Base;

class AdmGroup extends Base {
    /**
     * 显示后台菜单页面
     * @return  Void
     */
    public function doGet() {
        $MGroupModel = model('MenuGroup');
        $list = $MGroupModel->getGroupListByPage(\App\Mod\MenuGroup::GROUP_TYPE_ADM);
        debug($list);
        $subNav = [
            ['title'=>'菜单查询', 'url'=>'/menus/adminMenuList'],
            ['title'=>'添加菜单', 'url'=>'/menus/addMenu'],
            ['title'=>'菜单分组', 'url'=>'#', 'active'=>true],
            ['title'=>'添加分组', 'url'=>'/menus/addMenuGroup'],
        ];
        $this->setTemplateNav('后台菜单', $subNav);
        $this->display('index.php', [
            'list' => $list
        ]);
    }

}